package com.guli.common.utils;


public class Type {
    public enum AttrType {

        SALE(0, "sale"),
        BASE(1, "base");

        final int value;
        final String description;

        AttrType(int value, String description) {
            this.value = value;
            this.description = description;
        }

        public static int getAttrType(String description) {
            return "sale".equals(description) ? 0 : 1;
        }
    }
}
